﻿using GMap.NET;
using GMap.NET.MapProviders;
using GMap.NET.Projections;

namespace ShkSimulation.desktop.component.tools.map.AMap {

	public abstract class AMapProviderBase : GMapProvider {

		public AMapProviderBase() {
			MaxZoom = 18;
			MinZoom = 3;
			RefererUrl = "http://www.amap.com/";
			//Copyright = string.Format("©{0} 高德 Corporation, ©{0} NAVTEQ, ©{0} Image courtesy of NASA", DateTime.Today.Year);    
		}

		public override PureProjection Projection {
			get { return MercatorProjection.Instance; }
		}

		GMapProvider[] overlays;

		public override GMapProvider[] Overlays {
			get {
				if (overlays == null) {
					overlays = new GMapProvider[] {this};
				}
				return overlays;
			}
		}

	}

}